package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description TODO
 * @Classname ICodeClient
 * @Date 2021/5/30 20:56
 * @Author ch'ien
 */

@FeignClient(value = "lagou-service-code",path = "/code")
public interface ICodeClient {

    @GetMapping("/validate/{email}/{code}")
    public int validate(@PathVariable String email, @PathVariable String code);
}
